package com.xunfang.service;

import com.xunfang.bean.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author yellow Docter
 * @date 2023 -10-17
 * @desc
 */
public interface IUserService {

    User findUserById(Integer id);

    void addUser(User user);

    int deleteUserById(Integer id);

    //分页的业务
    List<User> pageUsers(Integer currentPage, Integer pageSize);

    //使用分页插件来分页
    List<User> pageUsersPlus(Integer currentPage, Integer pageSize);
}
